package com.dwxt.cdms.dao.yumeng;

import com.dwxt.cdms.entity.yumeng.BtData;
import com.dwxt.cdms.view.wristwatch.BtDataView;
import com.dwxt.cdms.vo.SelectWatchDataVo;
import com.dwxt.cdms.vo.SelectWatchVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BtDataMapper extends Mapper<BtData> {

    int countBtDataByDevAndTime(BtData btData);

    List<BtDataView> selectBtDataViewByCondition(SelectWatchDataVo selectWatchDataVo);

    int deleteBtDataByCustomerIds(@Param("customerIds") Integer[] customerIds);

    int replaceBindingWatchUser(@Param("customerId") Integer customerId, @Param("deviceIdentity") String deviceIdentity);

    List<Integer> selectCustomerIdsByCondition(SelectWatchDataVo selectWatchDataVo);

    BtDataView selectBtDataViewByCustomerId(Integer customerId);

    List<BtDataView> selectBtDataViewListByCustomerId(SelectWatchVo selectWatchVo);

    List<BtDataView> selectCustomerBtDataView(String customerId, Integer scope);
}